// IBookManager2.aidl
package com.shakespace.artofandroid;

// Declare any non-default types here with import statements
import com.shakespace.artofandroid.chapter02.Book;
import com.shakespace.artofandroid.IOnNewBookAddedListener;

interface IBookManager {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    List<Book> getBookList();
    void addBook(in Book book);

    void registerListener(IOnNewBookAddedListener listener);
    void unregisterListener(IOnNewBookAddedListener listener);
}
